package com.intellekt.ecert.login.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.intellekt.ecert.domain.CatalogoVO;
import com.intellekt.ecert.domain.UsuarioVO;
import com.intellekt.ecert.login.dao.LoginDao;

@Service
public class LoginServiceImpl implements LoginService {

	
    @Autowired
    protected LoginDao loginDao;
    
	public UsuarioVO getUsuarioPorUsername(String username, String password) {
	    return loginDao.getUsuarioPorUsername(username, password);
	}
	
	@Override
	public Map<String, String> getPantallasPorRol(String rolId) throws IOException {
		Map<String, String> mapPantallas = loginDao.getPantallasPorRol(rolId);
		return mapPantallas;
	}


	
}
